<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;
            }
        input{
            height: 21px;
        }
    </style>
    <script type="text/javascript" src="../../js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../js/04/yeshu1.js"></script>
    <script type="text/javascript" src="../../js/04/sasdasd4.js"></script>
    <script type="text/javascript" src="../../js/04/userrole.js"></script>
    <script type="text/javascript" src="../../js/04/userxiaoyan.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript">
        $(function () {
            serch_bean();
            gets();
        })
    </script>
</head>
<body>
<h1 align="center">用户信息</h1>
<form id="asdasd">
    <div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
       
        <tr>
            <td>用户名：</td>
            <td><input id="uName" name="uName" type="text" value=""></td>
            <td></td>
            <td>用户类别：</td>
            <td>
                <select id="rId" name="rId" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="0">管理员</option>
                    <option value="1">卫生局</option>
                    <option value="2">卫生院</option>
                    <option value="3">卫生室</option>
                    <option value="4">供货商</option>
                </select>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>邮编：</td>
            <td><input id="uPostalcode" name="uPostalcode"  type="text" value="" onblur="aaa()"></td>
            <td></td>
            <td>用户状态：</td>
            <td>
                <select id="uState" name="uState" style=" height: 25px; width: 160px;">
                    <option value="">全部</option>
                    <option value="0">正常</option>
                    <option value="1">不正常</option>
                </select>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>联系人：</td>
            <td><input id="uContacts" name="uContacts"  type="text" value=""></td>
            <td></td>
            <td>email：</td>
            <td><input id="uEmail" name="uEmail"  type="text" value="" onblur="ccc()"></td>
            <td></td>
        </tr>

        </tr>
    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button class="soso"><a href="javascript:void(0)" onclick="serch_bean1()">查询</a></button>
    </td>
    <br>
</div>
</form>
<iframe id="iframe" name="rfFrame" src="about:blank" style="display:none;"></iframe>
<div>
    <table>
        <tr>
            <td>用户id</td>
            <td>用户名</td>
            <td>用户类别</td>
            <td>密码</td>
            <td>用户状态</td>
            <td>所在单位</td>
            <td>联系地址</td>
            <td>邮政编码</td>
            <td>联系人</td>
            <td>联系电话</td>
            <td>email</td>
            <td>操作</td>
        </tr>
        <tbody id="checkOne">
        </tbody>
    </table>
</div>
<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>
    <!-- 模态框（Modal） -->
<!--添加用户-->
<form id="search_form" >
    <!-- 存放主键的id的input  -->
    <input type="hidden" value="" class="hhhhhhhid">
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        添加用户
                    </h4>
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp用户名</label>
                    <input type="text" class="form-control" name="uName" id="name1" onblur="ddd()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <td>用户类别:</td>
                    <td>
                        <select  name="rId" style=" height: 25px; width: 160px;">
                            <option value="">全部</option>
                            <option value="1">管理员</option>
                            <option value="2">卫生局</option>
                            <option value="3">卫生院</option>
                            <option value="4">卫生室</option>
                            <option value="5">供货商</option>
                        </select>
                    </td>
                    <td></td>
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&密码</label>
                    <input type="text" class="form-control" name="uPassword"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&所在单位</label>
                    <input type="text" class="form-control" name="uCompany"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&联系地址</label>
                    <input type="text" class="form-control" name="uAdress"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label>&nbsp&nbsp&邮政编码</label>
                    <input type="text" class="form-control" name="uPostalcode" id="uPostalcode1" onblur="eee()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp联系人</label>
                    <input type="text" class="form-control" name="uContacts"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp联系电话</label>
                    <input type="text" class="form-control" name="uPhone" id="tel" onblur="fff()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp email</label>
                    <input type="text" class="form-control" name="uEmail" onblur="sss()" id="uEmail1"
                           placeholder="请输入">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                    <button type="button" class="btn btn-primary" onclick="lauser()">
                        添加
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>
</form><!-- /.modal -->
<script>
    $(function () { $('#myModal').modal('hide')});
</script>
<script>
    $(function () { $('#myModal').on('hide.bs.modal', function () {
        ;})
    });

    //修改前的查看

</script>
<!--修改用户-->
<form id="search_form1">
    <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    </button>
                    <h4 class="modal-title" id="myModalLabe2">
                        修改用户
                    </h4>
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp用户名</label>
                    <input type="hidden" name="uId" id="uId" class="hh hhhhhhid">
                    <input type="text" class="form-control" name="uName" id="name" onblur="qqq()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <td>用户类别:</td>
                    <td>
                        <select id="id" name="rId" style=" height: 25px; width: 160px;">
                            <option value="">全部</option>
                            <option value="1">管理员</option>
                            <option value="2">卫生局</option>
                            <option value="2">卫生院</option>
                            <option value="2">卫生室</option>
                            <option value="2">供货商</option>
                        </select>
                    </td>
                    <td></td>
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp密码</label>
                    <input type="text" class="form-control"  name="uPassword" id="password"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp用户状态</label>
                    <input type="text" class="form-control"  name="uState" id="state"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp所在单位</label>
                    <input type="text" class="form-control" name="uCompany" id="company"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp联系地址</label>
                    <input type="text" class="form-control" name="uAdress" id="adress"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp邮政编码</label>
                    <input type="text" class="form-control"  name="uPostalcode" id="postalcode" onblur="www()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp联系人</label>
                    <input type="text" class="form-control" name="uContacts" id="contacts"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbsp联系电话</label>
                    <input type="text" class="form-control" name="uPhone" id="phone" onblur="rrr()"
                           placeholder="请输入">
                </div>
                <div class="form-group">
                    <label >&nbsp&nbsp&nbspemail</label>
                    <input type="text" class="form-control" name="uEmail" id="email" onblur="ttt()"
                           placeholder="请输入">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                    <button type="button" class="btn btn-primary" onclick="xiugai()">
                        修改
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
</form>

<script>
    $(function () { $('#myModal').modal('hide')});
</script>
<script>
    $(function () { $('#myModal').on('hide.bs.modal', function () {
    })
    });
</script>
</body>
</html>
